package com.antd.auth.fegin;

import com.antd.admin.api.entity.SysMenu;
import com.antd.auth.fegin.factory.RemotePermissionFallbackFactory;
import com.antd.auth.fegin.factory.RemoteUserFallbackFactory;
import com.antd.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * TODO
 *
 * @author 子丶沫
 * @version 1.0
 * @date 2020/11/24 16:56
 */
@FeignClient(contextId = "remoteUserService",value = "antd-admin-server",fallbackFactory = RemotePermissionFallbackFactory.class)
public interface RemotePermissionService {
    /**
     * 查询权限
     * @return
     */
    @GetMapping("/menu/getPermission")
    R<List<SysMenu>> findPermission();
}
